package com.zl.controller;

import com.zl.common.Result;
import com.zl.gen.SysGeneratorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("gen")
public class GeneratorController {


    @Autowired
    private SysGeneratorService service;


    @RequestMapping(value = "code")
    public Result getUserInfo(){

        String[] s = {"menu"};
        return Result.success(service.generatorCode(s));
    }
}